<template>
	<om-addpage style="padding-top: 35px;" :busCode="busCode" :menuName="menuName" @formSubmit="formSubmit" :showHistoryBtn="true">
		<om-autoform ref="autoform" :checkedit="checkedit"  :initConfigData="mainConfigData" :initValue="initValue"></om-autoform>
	</om-addpage>
</template>
<script>
	import {
		buildFormData,
		formValidation,
		changeEditor,
		formShowLoading,
		configFormEditor,
		getWorkCacheKey,
		changeConfigAttr,
		configSelectData,
		hasEditor,
		getEditorTitle,
		formModelLoad,
		getFormFields,
		insertAfterEditor
	} from '@/static/js/formUtil.js';
	import dateTimePicker from '@/static/js/dateTimePicker.js';
	import urlUtil from '@/static/js/urlUtil.js';
	import { mapState } from 'pinia';
	import {useLoginUserStore} from '@/stores/login-user.js';
	import { errorModal } from '../../../static/js/common';
export default {
	provide() {
		return {
			formPage: this
		};
	},
	data() {
		return buildFormData({
			initValue: {
				parentOthers:'',
				currentOthers:'',
				infonameId:'',
				infoname:'',
				fileStr:[]
			},
			areaCacheKey: 'hr-u-adjustinfo-area-cache',
			parentAddressCacheKey:'hr-u-adjustinfo-parentAddress-cache',
			nationCacheKey:'hr-u-adjustinfo-nation-cache',
			currentAddressCacheKey:'hr-u-adjustinfo-currentAddress-cache',
			posCacheKey:'hr-u-adjustinfo-pos-cache',
			infoIdCacheKey:'hr-u-adjustinfo-infoId-cache'
		})
	},
	computed: {
		...mapState(useLoginUserStore, ['userName', 'userId','areaCode','areaName'])
	},
	methods: {
		setInfo(id){
			let _that = this
			_that.om.request(
				"tpiAdjust/setInfo",
				{
					userId:id?id:_that.userId
				}
			).then(res=>{
				if(res.value){
					if(_that.subEditorObj['eduOrSchool']){
						_that.subEditorObj["eduOrSchool"].workList = res.value.eduList
					}
					if(_that.subEditorObj['familyMember']){
						_that.subEditorObj["familyMember"].workList = res.value.familyList
					}
					if(_that.subEditorObj['workExp']){
						_that.subEditorObj["workExp"].workList = res.value.workList
					}
					if(_that.subEditorObj["title5"]){
						_that.subEditorObj["title5"].workList = res.value.datas
					}
					if(_that.subEditorObj['title_pro']){
						_that.subEditorObj["title_pro"].workList = res.value.proList
					}
					if(_that.subEditorObj['title_empSupply']){
						_that.subEditorObj["title_empSupply"].workList = res.value.supplementList
					}
				}
			})
		},
		getNewInfo(id){
			let _that = this
			_that.om.request(
				"tpiAdjust/getNewInfo",
				{
					userId:id?id:_that.userId
				}
			).then(res=>{
				if(res.value){
					_that.$refs.autoform.formdata.areaCode = res.value.areaCode
					_that.$refs.autoform.formdata.areaName = res.value.areaName
					_that.$refs.autoform.formdata.idCard = res.value.idcard
					_that.$refs.autoform.formdata.idTypeId = res.value.idTypeId
					_that.$refs.autoform.formdata.idTypeName = res.value.idTypeName
					_that.$refs.autoform.initSelectIndex("userInfo","idTypeId")
					_that.$refs.autoform.formdata.infosexCode = res.value.sex
					_that.$refs.autoform.formdata.infosex = res.value.sexName
					_that.$refs.autoform.initSelectIndex("userInfo","infosexCode")
					_that.$refs.autoform.formdata.infobirthday = res.value.birthdate
					_that.$refs.autoform.formdata.birthplace = res.value.birthPlace
					_that.$refs.autoform.formdata.nationCode = res.value.naition
					_that.$refs.autoform.formdata.nationName = res.value.naitionName
					_that.$refs.autoform.formdata.marriageCode = res.value.maritalstatus
					_that.$refs.autoform.formdata.marriageName = res.value.maritalstatusName
					_that.$refs.autoform.initSelectIndex("userInfo","marriageCode")
					_that.$refs.autoform.formdata.infophone = res.value.mobile
					_that.$refs.autoform.formdata.height = res.value.height
					_that.$refs.autoform.formdata.polticsId = res.value.politicalId 
					_that.$refs.autoform.formdata.polticsName  = res.value.politicalName 
					_that.$refs.autoform.initSelectIndex("userInfo","politicalId")
					_that.$refs.autoform.formdata.shortno = res.value.shortno
					_that.$refs.autoform.formdata.email = res.value.mail
					_that.$refs.autoform.formdata.qq = res.value.qqno
					_that.$refs.autoform.formdata.bloodTypeCode = res.value.bloodType
					_that.$refs.autoform.formdata.bloodTypeName = res.value.bloodTypeName
					_that.$refs.autoform.initSelectIndex("userInfo","bloodTypeCode")
					_that.$refs.autoform.formdata.parentOthers = res.value.birthOthers
					_that.$refs.autoform.formdata.currentOthers = res.value.currentOthers
					_that.$refs.autoform.formdata.registerCategoryId = res.value.registerCategoryId
					_that.$refs.autoform.formdata.registerCategoryName = res.value.registerCategoryName
					_that.$refs.autoform.initSelectIndex("userInfo","registerCategoryId")
					_that.$refs.autoform.formdata.roleCategoryId = res.value.roleId
					_that.$refs.autoform.formdata.roleCategoryName = res.value.roleName
					if(!res.value.roleId){
						_that.$refs.autoform.initSelectVal("otherInfo","roleCategoryId")
					}else{
						_that.$refs.autoform.initSelectIndex("otherInfo","roleCategoryId")
					}
					if(res.value.currentPlaceId){
						_that.$refs.autoform.formdata.currentPlaceId = res.value.currentPlaceId
						_that.$refs.autoform.formdata.currentPlaceName = res.value.currentPlaceName
					}else{
						_that.$refs.autoform.formdata.currentOthers = res.value.currentPlaceName
					}
					if(res.value.parentPlaceId){
						_that.$refs.autoform.formdata.parentPlaceName =  res.value.parentPlaceName
						_that.$refs.autoform.formdata.parentPlaceId = res.value.parentPlaceId
					}else{
						_that.$refs.autoform.formdata.parentOthers =  res.value.parentPlaceName
					}
					if(res.value.uploadFileData && res.value.uploadFileData.fileSaveName){
						let avatarList = [_that.om.getUrl("/uploadFileData/getInterimFile.do?key=28" + "&fileName=" + res.value.uploadFileData.fileSaveName)]
						_that.$refs.autoform.changeEditor('userInfo',"fileStr","fileList",avatarList)
						_that.$refs.autoform.$set(_that.$refs.autoform.formdata, 'fileStr',JSON.stringify({"fileName":res.value.uploadFileData.fileName,"fileSaveName":res.value.uploadFileData.fileSaveName}))
						_that.$set(_that.formdata, 'fileStr',JSON.stringify({"fileName":res.value.uploadFileData.fileName,"fileSaveName":res.value.uploadFileData.fileSaveName}) )
					}
				}
			})
		},
		formSubmit() {
			let _that = this
			_that.om.formSave('tpiAdjust/addTpiAdjust',_that.formdata,_that);
		},
		initLoad(options) {
			let _that = this;
			var ajaxArr = [
				urlUtil.sysdictComboboxUrl('20007'), //身份证件类别
				urlUtil.sysdictComboboxUrl('20010'),//政治面貌
				urlUtil.dictZeroComboboxUrl('23594'), //婚姻状况
				urlUtil.sysdictComboboxUrl('23586'),//目前状态
				urlUtil.dictZeroComboboxUrl('37381'),//血型
				urlUtil.sysdictComboboxUrl('35872'),//银行
				urlUtil.dictZeroComboboxUrl('23591'), //性别
				{
					url:"temployee/getRoleCategoryList", //角色类别
				},
				{
					url:"tsysdict/getListByCode",
					param:{
						code:'38644'
					}
				},
				{
					url:'tsysdict/getListByCode', //外语语种
					param:{
						code:'38782'
					}
				},
				{
					url:'tsysdict/getListByCode', //外语水平
					param:{
						code:'38787'
					}
				},
				{
					url:'tsysdict/getListByCode', //
					param:{
						code:'20404'
					}
				},{
					url:'tsysdict/getListByCode', //
					param:{
						code:'38791'
					}
				},
				{
					url:'tsysdict/getListByCode',
					param:{
						code:'39665'
					}
				}, //户口
				{
					url:'tsysdict/getListByCode',
					param:{
						code:'39668'
					}
				}, //子女
				{
					url:'posBusiAuth/buttonTip',
					param:options.edit == 'true'?{
						formCode:options.code,
						str: 'isedit'
					}:{
						formCode:options.code,
						str: "isnew",
						isNeedNewVerify: true
					},
					method:'post'
				},
				{
					url:'tpiAdjust/verifyIsMainUser',
				}
			];
			var fileId = options.fileId
			if(fileId){
				ajaxArr.push({
					url:'tpiAdjust/getInfo',
					param:{
						id:fileId
					},
					method:"post"
				})
			} else {
				ajaxArr.push({
					url:'wxTpiAdjust/getInfo'
				})
			}
			formModelLoad(ajaxArr, function(res, mainData) {
				if(!res[15].success && res[15].msg){
					errorModal(_that,'提示信息',res[15].msg,()=>{
						uni.navigateBack()
					})
				}
				
				changeEditor('userInfo', 'idTypeId', 'data', configSelectData(res[0], 'id', 'dicname'), mainData);
				changeEditor('userInfo', 'politicalId', 'data', configSelectData(res[1], 'id', 'dicname'), mainData);
				changeEditor('userInfo', 'marriageCode', 'data', configSelectData(res[2], 'code', 'dicname'), mainData);
				changeEditor('userInfo', 'currentStatusId', 'data', configSelectData(res[3], 'id', 'dicname'), mainData);
				changeEditor('userInfo', 'bloodTypeCode', 'data', configSelectData(res[4], 'code', 'dicname'), mainData);
				changeEditor('otherInfo', 'salaryBankId', 'data', configSelectData(res[5], 'id', 'dicname'), mainData);
				changeEditor('userInfo', 'infosexCode', 'data', configSelectData(res[6], 'code', 'dicname'), mainData);
				changeEditor("otherInfo","roleCategoryId","data",configSelectData(res[7],"id","dicname"),mainData)
				changeEditor("userInfo","registerCategoryId",'data',configSelectData(res[8], 'id', 'dicname'), mainData)
				changeEditor("otherInfo","foreignLanguageId","data",configSelectData(res[9],"id","dicname"),mainData)
				changeEditor("otherInfo","foreignLanguageLevelId","data",configSelectData(res[10],"id","dicname"),mainData)
				changeEditor("otherInfo","computerAbilityId","data",configSelectData(res[11],"id","dicname"),mainData)
				changeEditor("otherInfo","physicalConditionId","data",configSelectData(res[12],"id","dicname"),mainData)
				changeEditor("userInfo","householdId","data",configSelectData(res[13],"id","dicname"),mainData)
				changeEditor("userInfo","childrenId","data",configSelectData(res[14],"id","dicname"),mainData)
				
				if(res[16].succeed && res[16].value){
					_that.initValue.infoname = ''
					_that.initValue.infonameId = ''
					changeEditor('userInfo','infoname','type',"linkbox",mainData)
					changeEditor('userInfo','infoname',{
						link:'../../public/searchUser/searchUser',
						linkParam: {
							namefield: urlUtil.userPageUrl().namefield,
							searchfield: "q",
							cachename: _that.infoIdCacheKey,
							isNew:true,
							isSingle:true,
							placeholder: urlUtil.userPageUrl().prompt,
							pagination: true
						}
					}, null, mainData);
				}
				changeEditor('userInfo','areaCode',{//国家或地区选择
					defaultValue:_that.areaCode,
					defaultName:_that.areaName,
					link: '../../public/search/search',
					linkParam: {
						initload: true,
						namefield: 'dicname',
						url: "regions/getCountryList",
						cachename: _that.areaCacheKey,
						placeholder: '请输入名称'
					}
				}, null, mainData);
				changeEditor('userInfo','nationCode',{//民族选择
					link: '../../public/search/search',
					linkParam: {
						other:JSON.stringify({
							code:'20005'
						}),
						initload: true,
						namefield: 'dicname',
						url: urlUtil.dictZeroComboboxUrl().url,
						cachename: _that.nationCacheKey,
						placeholder: '请输入民族'
					}
				}, null, mainData);
				changeEditor('userInfo','parentPlaceId','type','areabox',mainData)
				changeEditor('userInfo','parentPlaceId',{//户籍
					link: '../../public/search/search',
					linkParam: {
						other:JSON.stringify({
							classifyCode:'35923'
						}),
						searchfield:'q',
						fullName:true,
						namefield: urlUtil.addressUrl().namefield,
						url: urlUtil.addressUrl().url,
						cachename: _that.parentAddressCacheKey,
						placeholder: '请输入地址'
					}
				}, mainData);
				insertAfterEditor('userInfo','parentPlaceId',{
					"type": "textarea",
					"title": "详细地址",
					"valueField": "parentOthers",
					"prompt":"请输入",
					"required":false,
				}, mainData)
				changeEditor('userInfo','currentPlaceId','type','areabox',mainData)
				changeEditor('userInfo','currentPlaceId',{//现居住地
					link: '../../public/search/search',
					linkParam: {
						other:JSON.stringify({
							classifyCode:'35923'
						}),
						searchfield:'q',
						namefield: urlUtil.addressUrl().namefield,
						url: urlUtil.addressUrl().url,
						fullName:true,
						cachename: _that.currentAddressCacheKey,
						placeholder: '请输入地址'
					}
				}, mainData);
				insertAfterEditor('userInfo','currentPlaceId',{
					"type": "textarea",
					"title": "详细地址",
					"valueField": "currentOthers",
					"prompt":"请输入",
					"required":false,
				}, mainData)
				
				if (_that.subEditorObj['eduOrSchool']) {
					changeEditor('eduOrSchool', 'objStrEdu', {
						titleTemplate: '开始时间：<%= startDateE || "未填写"%>'+ "~" + '结束时间：<%=endDateE || "未填写"%>',
						subtitle1Template: '学校：<%= schoolE || "未填写"%>',
						subtitle2Template: '学历：<%= eduEName || "未填写"%>',
					},
					mainData);
				}
				if (_that.subEditorObj['workExp']) {
					changeEditor('workExp', 'objStrWork', {
						titleTemplate: '<%= startDateW || "未填写"%>'+ "~" + '<%=endDateW || "未填写" %>',
						subtitle1Template: '组织：<%= orgNameW %>'
					},
					mainData);
				}
				if (_that.subEditorObj['familyMember']) {
					changeEditor('familyMember', 'objStrFamily', {
						titleTemplate: '<%= nameF %>',
						subtitle1Template: '称谓：<%= appellationFName || "未填写"%>',
						subtitle2Template: '单位：<%= companyF || "未填写"%>',
					}, 
					mainData);
				}
				if (_that.subEditorObj['title5']) {
					changeEditor('title5', 'dataStr', {
							showDel:false,
							titleTemplate: '<%= dataName|| "未填写" %>',
						},null,mainData);
				}
				if (_that.subEditorObj['title_pro']) {
					let attr = {}
					let configData = _that.subConfigData['title_pro']
					if(hasEditor("title_pro","proName",configData)){
						let title = getEditorTitle("title_pro","proName",configData)
						attr.titleTemplate=title+':<%= proName|| "未填写" %>'
					}
					changeEditor("title_pro","objStrPro",attr,mainData)
				}
				if (_that.subEditorObj['title_empSupply']) {
					let attr = {}
					let configData = _that.subConfigData['title_empSupply']
					if(hasEditor("title_empSupply","itemId",configData)){
						let title = getEditorTitle("title_empSupply","itemId",configData)
						attr.titleTemplate=title+':<%= itemName|| "未填写" %>'
					}
					changeEditor("title_empSupply","supplementStr",attr,mainData)
				}
				var avatarEditor = {
					"type": "avatarbox",
					"title": "个人头像",
					"valueField": "fileStr",
					"uploadUrl":"uploadFileData/uploadInterimFile.do",
					formData:{
						key:28
					}
				}
				var avatarList = []
				if(res[17].succeed && fileId){
					if(res[17].value.uploadFileData && res[17].value.uploadFileData.id) {
						avatarList = [_that.om.getUrl("uploadFileData/getFile.do?key=28&fileId=" + res[17].value.uploadFileData.id)]
						_that.$refs.autoform.$set(_that.$refs.autoform.formdata, 'fileStr', JSON.stringify(res[17].value.uploadFileData))
						_that.$set(_that.formdata, 'fileStr', JSON.stringify(res[17].value.uploadFileData))
					}
					var fieldArr = getFormFields(mainData)
					fieldArr.splice('zuserId',1)
					fieldArr.push("id")
					//主表赋值
					for(var i in res[17].value.tpiAdjust){
						if(fieldArr.includes(i)){
							_that.$refs.autoform.$set(_that.$refs.autoform.formdata, i, res[17].value.tpiAdjust[i])
							_that.$set(_that.formdata, i, res[17].value.tpiAdjust[i])
						}
					}
					_that.initValue.infoname = res[17].value.tpiAdjust.infoname
					_that.initValue.infonameId = res[17].value.tpiAdjust.infonameId
					//教育经历
					if(_that.subEditorObj["eduOrSchool"]){
					var eduList = _that._.cloneDeep(res[17].value.eduList)
					_that.subEditorObj["eduOrSchool"].workList = eduList
					_that.$refs.autoform.$set(_that.$refs.autoform.formdata, "objStrEdu", JSON.stringify(eduList))
					_that.$set(_that.formdata, "objStrEdu", JSON.stringify(eduList))
					delete res[17].value.eduList
					}
					//工作经历
					if(_that.subEditorObj["workExp"]){
					var workList = _that._.cloneDeep(res[17].value.workList)
					_that.subEditorObj["workExp"].workList = workList
					_that.$refs.autoform.$set(_that.$refs.autoform.formdata, "objStrWork", JSON.stringify(workList))
					_that.$set(_that.formdata, "objStrWork", JSON.stringify(workList))
					delete res[17].value.eduList
					}
					//家庭成员
					if(_that.subEditorObj["familyMember"]){
					var familyList = _that._.cloneDeep(res[17].value.familyList)
					_that.subEditorObj["familyMember"].workList = familyList
					_that.$refs.autoform.$set(_that.$refs.autoform.formdata, "objStrFamily", JSON.stringify(familyList))
					_that.$set(_that.formdata, "objStrFamily", JSON.stringify(familyList))
					delete res[17].value.familyList
					}
					//个人资料
					if(_that.subEditorObj["title5"]){
					var datas = _that._.cloneDeep(res[17].value.datas)
					_that.subEditorObj["title5"].workList = datas
					_that.$refs.autoform.$set(_that.$refs.autoform.formdata, "dataStr", JSON.stringify(datas))
					_that.$set(_that.formdata, "dataStr", JSON.stringify(datas))
					delete res[17].value.datas
					}
					if(_that.subEditorObj["title_pro"]){
					var datas = _that._.cloneDeep(res[17].value.proList)
					_that.subEditorObj["title_pro"].workList = datas
					_that.$refs.autoform.$set(_that.$refs.autoform.formdata, "objStrPro", JSON.stringify(datas))
					_that.$set(_that.formdata, "objStrPro", JSON.stringify(datas))
					delete res[17].value.datas
					}
					if(_that.subEditorObj["title_empSupply"]){
					var datas = _that._.cloneDeep(res[17].value.proList)
					_that.subEditorObj["title_empSupply"].workList = datas
					_that.$refs.autoform.$set(_that.$refs.autoform.formdata, "supplementStr", JSON.stringify(datas))
					_that.$set(_that.formdata, "supplementStr", JSON.stringify(datas))
					delete res[17].value.datas
					}
					_that.$nextTick(function(){
						this.$nextTick(function(){
							this.$refs.autoform.initSelectIndex('userInfo', 'idTypeId');
							this.$refs.autoform.initSelectIndex('userInfo', 'politicalId');
							this.$refs.autoform.initSelectIndex('userInfo', 'marriageCode');
							this.$refs.autoform.initSelectIndex('userInfo', 'currentStatusId');
							this.$refs.autoform.initSelectIndex('userInfo', 'bloodTypeCode');
							this.$refs.autoform.initSelectIndex('userInfo', 'infosexCode');
							this.$refs.autoform.initSelectIndex('otherInfo', 'salaryBankId')
							this.$refs.autoform.initSelectIndex('otherInfo',"roleCategoryId")
							this.$refs.autoform.initSelectIndex('userInfo',"registerCategoryId")
							this.$refs.autoform.initSelectIndex('otherInfo',"foreignLanguageId")
							this.$refs.autoform.initSelectIndex('otherInfo',"foreignLanguageLevelId")
							this.$refs.autoform.initSelectIndex('otherInfo',"computerAbilityId")
							this.$refs.autoform.initSelectIndex('otherInfo',"physicalConditionId")
							this.$refs.autoform.initSelectIndex("userInfo","householdId")
							this.$refs.autoform.initSelectIndex("userInfo","childrenId")
						})
					})
				}
				avatarEditor['fileList'] = avatarList
				insertAfterEditor('userInfo','infoname',avatarEditor, mainData)
				if(!fileId && !res[16].value){
					_that.getNewInfo()
					_that.setInfo()
				}
			},options);
		}
	},
	onLoad(options) {
		this.initValue.infoname = this.userName
		this.initValue.infonameId = this.userId
		this.initValue.zuserName = this.userName
		this.initValue.zuserId = this.userId
		this.initLoad(options);
	},
	onUnload(){
		//#ifdef APP-PLUS
		let _that = this;
		if (_that.$refs.autoform) {
			for (var fieldId in _that.subEditorObj) {
				uni.removeStorage({
					key: getWorkCacheKey(fieldId)
				});
			}
		}
		//#endif
	},
	onShow() {
		let _that = this;
		if (_that.$refs.autoform) {
			for (var fieldId in _that.subEditorObj) {
				let editor = _that.subEditorObj[fieldId];
				uni.getStorage({
					key: getWorkCacheKey(fieldId),
					success: function(res) {
						if(_that.subEditorObj['title5']){
							for(let item of res.data){
								if(!item.files){
									item.files = null
								}
							}
						}
						editor.workList = res.data;
						uni.removeStorage({
							key: getWorkCacheKey(fieldId)
						});
					}
				});
			}
			uni.getStorage({
				key: _that.infoIdCacheKey,
				success: function(res) {
					if (res.data) {
						let d = res.data[0];
						var formdata = _that.$refs.autoform.formdata;
						if(d){
							formdata.infoname = d.username
							formdata.infonameId = d.id
							_that.getNewInfo(d.id)
							_that.setInfo(d.id)
						}
						uni.removeStorage({
							key: _that.infoIdCacheKey
						});
					}
				}
			});
			uni.getStorage({
				key: _that.areaCacheKey,
				success: function(res) {
					if (res.data) {
						let d = res.data;
						var formdata = _that.$refs.autoform.formdata;
						formdata.areaCode = d.code
						formdata.areaName = d.dicname
						uni.removeStorage({
							key: _that.areaCacheKey
						});
					}
				}
			});
			uni.getStorage({
				key: _that.nationCacheKey,
				success: function(res) {
					if (res.data) {
						let d = res.data;
						var formdata = _that.$refs.autoform.formdata;
						formdata.nationCode = d.code
						formdata.nationName = d.dicname
						uni.removeStorage({
							key: _that.nationCacheKey
						});
					}
				}
			});
			uni.getStorage({
				key: _that.parentAddressCacheKey,
				success: function(res) {
					if (res.data) {
						let d = res.data;
						var formdata = _that.$refs.autoform.formdata;
						_that.$refs.autoform.$refs.areapop.close()
						formdata.parentPlaceId = d.id
						formdata.parentPlaceName = d.fullName
						formdata.registerplace = d.fullName
						uni.removeStorage({
							key: _that.parentAddressCacheKey
						});
					}
				}
			});
			uni.getStorage({
				key: _that.currentAddressCacheKey,
				success: function(res) {
					if (res.data) {
						let d = res.data;
						_that.$refs.autoform.$refs.areapop.close()
						var formdata = _that.$refs.autoform.formdata;
						formdata.currentPlaceId = d.id
						formdata.address = d.fullName
						formdata.currentPlaceName = d.fullName
						uni.removeStorage({
							key: _that.currentAddressCacheKey
						});
					}
				}
			});
			uni.getStorage({
				key: _that.posCacheKey,
				success: function(res) {
					if (res.data) {
						let d = res.data;
						var formdata = _that.$refs.autoform.formdata;
						formdata.posId = d.posid
						formdata.posName = d.posname
						uni.removeStorage({
							key: _that.posCacheKey
						});
					}
				}
			});
		}
	}
};
</script>
<style></style>
